/**
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"8541EBAC-72A0-4B10-9429-C10FAAFB74C7"}
 */
function menu(event){
	
	var popUpMenu = plugins.window.createPopupMenu();
	popUpMenu.addMenuItem("Refrescar Tablas", scopes.adm_t900_tablas.refrescar_tablas);

	if (event.getSource()) {
		popUpMenu.show(event.getSource());
	}
}

/**
 * @properties={typeid:24,uuid:"DC0FE6EE-2F0B-4076-9088-9E9F63B1603E"}
 * @AllowToRunInFind
 */
function buscar(){
	
	if (foundset.find()){
		foundset.s_descripcion = "#%" + $texto_busqueda + "%";
		foundset.newRecord();
		foundset.s_nombre_tabla = "#%" + $texto_busqueda + "%";
		foundset.search();
	}
}
